feat: show active provider + model in API config selector #11292
+41
−3
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Related GitHub Issue
Closes: #11290
Description
This PR attempts to address Issue #11290 by showing the active model ID alongside the API config name in the bottom bar of the chat, so users can immediately see which model is active for the current mode without clicking into settings.
Changes:
ChatTextArea.tsx: Modified theuseMemothat computescurrentConfigIdanddisplayNameto also look up the current config'smodelIdfromlistApiConfigMetaand build a richer display string like"configName · modelId"(e.g.,"default · claude-sonnet-4-20250514").Tooltip enhancement: The tooltip on the
ApiConfigSelectortrigger now shows the full provider + model info (e.g.,"default (anthropic) · claude-sonnet-4-20250514") so that even when the trigger text is truncated, hovering reveals the complete info.No changes to
ApiConfigSelector.tsxitself were needed -- it already renders whateverdisplayNameit receives and usestitleas tooltip content. The enhanced data flows through naturally.This is a minimal, non-breaking change that:
listApiConfigMeta)Test Procedure
ChatTextArea.spec.tsx:modelIdis availablemodelIdis not availablePre-Submission Checklist
Documentation Updates
Additional Notes
Feedback and guidance are welcome.
Important
Enhances
ChatTextArea.tsxto display active model ID with API config name and updates tooltip, with tests inChatTextArea.spec.tsx.ChatTextArea.tsx: UpdatesuseMemoto includemodelIdindisplayNameandtooltipContentfor API config display.ChatTextArea.spec.tsx: Adds tests to verify display of model ID with config name and only config name whenmodelIdis unavailable.This description was created by
for 80b3d8c. You can customize this summary. It will automatically update as commits are pushed.